package com.tester.zc.test001.fourth;

/**
 * 题目4手机工厂模式测试类
 *
 * @Author zhoucan
 * @Date 2022/12/4
 */
public class PhoneTest {

    public static void main(String[] args) {
        //创建手机工厂
        PhoneFactory factory = new PhoneFactory();
        //输入型号生产手机
        Phone phone = factory.productionPhone("vivo");
        System.out.println(phone.getType());
    }

}
